'use strict';
module.exports = {
	/**
	 * 此云函数的作用是根据传进来的参数，生成一个可以从其他渠道，比如抖音/短信直接跳转进微信小程序的https短链接
	 * 如https://wxaurl.cn/DlPCeYvJL4d
	 */
	main: async (event) => {

		let {
			data = {}, userInfo, util, filterResponse, originalParam
		} = event;
		let {
			customUtil,
			uniID,
			config,
			pubFun,
			vk,
			_
		} = util;
		let {
		} = data;
		let res = {
			code: 0,
			msg: ""
		};
		const db = uniCloud.database();

		console.log("data=", data);


		let adds = await db.collection('report_channel_day').add(data);

		// 业务逻辑结束-----------------------------------------------------------
		return res;
	}
}
